package com.lxj.common;

/**
 * @author lxj
 * @date 2021/6/16 18:41
 */
public enum CodeMsg {
    SUCCESS(200,"操作成功"),
    ERROR(500,"程序员送外卖了!"),

    USER_USER_PASSWORD_ERROR(4011001,"用户名或者密码错误!"),
    USER_CODE_ERROR(4011002,"验证码输入错误!"),
    USER_LOGIN_NAME_EXIST_ERROR(4011003,"用户登录名已被使用!"),
    USER_PHONE_EXIST_ERROR(4011004,"用户手机号已被使用!"),
    USER_ID_CARD_EXIST_ERROR(4011005,"用户身份证号已被使用!"),
    USER_IS_NOT_ROLE(4011006,"没有访问权限！"),
    PERMISSION_CHILDREN_NOT_NULL(4021001,"子节点不为空！"),
    PERMISSION_PARENT_ID_IS_NULL(4021002,"父菜单为空！"),
    PERMISSION_TYPE_IS_NULL(4021003,"权限为空！"),
    PERMISSION_ROOT_IS_NOT_LIST(4021004,"根节点不为目录！"),
    PERMISSION_MENU_IS_NOT_ADDRESS(4021005,"菜单没有地址！"),
    PERMISSION_BUTTON_IS_NOT_TAG(4021006,"按钮没有标识！"),
    CAR_ID_ERROR(4031001,"车辆的id输入错误!"),
    CAR_IS_RENT_ERROR(4031002,"该车已出租!"),
    CUSTOM_ID_CARD_ERROR(4041001,"客户的身份证输入错误!"),
    RENT_RECORD_ERROR(4051001,"借车记录不存在!"),
    RENT_FLAG_IS_RETURN(4051002,"该车辆已经被归还了!"),
    ;

    public  Integer code;//业务码
    public  String msg;//业务消息

    CodeMsg(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
